package com.caiyi.financial.nirvana.sms.mapper;

import com.caiyi.financial.nirvana.sms.base.mapper.BaseMapper;
import com.caiyi.financial.nirvana.sms.entity.SmsUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * Created by Mario on 2017/12/15 0015.
 * SMS客户Mapper
 */
@Mapper
public interface SmsUserMapper extends BaseMapper<SmsUser> {

    @Update("update sms_user set sms_num = sms_num + #{msgCount} where id = #{id}")
    int updateById(@Param("id") String id, @Param("msgCount") Integer msgCount);
}
